﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ZJF.advance._01_继承
{
    internal class Person
    {
        public Person() { }

        public Person(string name) { 
            this.name = name;
        }

        public Person(string name, int age):this(name) { 
            this.age = age;
        }
        public Person(string name, int age, string gender):this(name,age)
        {
            this.gender = gender;
        }

        public string name { get; set; }
        
        public int age { get; set; }

        public string gender { get; set; }

        public void doEat() {
            Console.WriteLine("吃饭ing...");
        }
    }
}
